package dtaskboard.client.service;

import java.util.Date;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import dtaskboard.client.dto.ProjectDTO;
import dtaskboard.client.dto.SprintDTO;

@RemoteServiceRelativePath("project")
public interface ProjectService extends RemoteService {
  public void createProject(String projectName, String sessionId);

  public void updateProject(String projectName, String projectHours,
      String projectSprints, String sessionId);

  public void createSprint(String projectName, String plannedHours,
      Date startDate, Date endDate, String sessionId);

  public void closeSprint(String projectName, String achievedHours,
      String sesisonId);

  public SprintDTO getLatestSprint(String projectName, String sessionId);

  public void createHistory(String projectName, String name, String sessionId);

  public void createTask(String projectName, Long historyId, String name,
      Long estimate, String sessionId);

  public void advanceTask(String projectName, Long taskId, String sessionId);

  public void returnTask(String projectName, Long taskId, String sessionId);

  public ProjectDTO getProject(String projectName, String sessionId);

}
